package codename.carrot.bomberman.game.gamemessages;

import codename.carrot.bomberman.game.networkobjects.DroidPoint;

/**
 *  A network message representing a request for bomb-placement by a player
 * @author Group A4.
 *
 */
public class BombDropMessage extends BombermanMessage {
    /**
     *  The serial UID for serialization
     */
	private static final long serialVersionUID = 1L;
	/**
	 * The position of the bomb to be placed
	 */
	private DroidPoint position;
    
	/**
	 *  Constructor
	 * @param playerId the ID of the player that places the bomb
	 * @param position the position where the bomb should be placed
	 */
    public BombDropMessage(int playerId, DroidPoint position) {
        setPlayerId(playerId);
        this.position = position;
    }
    
    /**
     * Returns the position of the bomb to be placed
     * @return the position
     */
    public DroidPoint getPosition() {
        return position;
    }
}
